﻿<controls:ChildWindow x:Class="GlobalOfficeTools.Views.Entities.ClientEditNew"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
    xmlns:sc="clr-namespace:SilverlightContrib.Controls;assembly=SilverlightContrib.Controls"
    xmlns:designViewModel="clr-namespace:GlobalOfficeTools.ViewModels"
    DataContext="{Binding [ClientEditNewViewModel],  Source = {StaticResource mvvLocator}}"
    Width="830" Height="451" 
    Title="ClientEditNew">
    
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <sc:GroupBox Margin="12,12,12,0" Height="57" VerticalAlignment="Top">
            <Grid Height="46">
                <TextBlock Height="18" HorizontalAlignment="Left" Margin="44,14,0,0" Text="Name:" VerticalAlignment="Top" Width="70" />
                <TextBlock Height="18" HorizontalAlignment="Left" Margin="561,14,0,0" Text="Short Name:" VerticalAlignment="Top" Width="70" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="118,11,0,0" Name="textBox1" VerticalAlignment="Top" Width="439" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="635,11,0,0" Name="textBox2" VerticalAlignment="Top" Width="129" />
                <Image HorizontalAlignment="Left" Margin="3,5,0,9" Source="/GlobalOfficeTools;component/Images/32x32/entities.png" Stretch="Fill" Width="32">
                	<Image.Effect>
                		<DropShadowEffect/>
                	</Image.Effect>
                </Image>
            </Grid>
        </sc:GroupBox>
        
        <Button x:Name="CancelButton" Content="Cancel" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,8,12,4" Grid.Row="1" />
        <Button x:Name="OKButton" Content="OK" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,8,91,4" Grid.Row="1" />
        <controls:TabControl Margin="16,75,12,8" Name="tabControl1">
            <controls:TabItem Header="General">
                <Grid>
                    <TextBlock Height="18" HorizontalAlignment="Left" Margin="6,17,0,0" Name="textBlock1" Text="Client Type" VerticalAlignment="Top" Width="90" />
                    <ComboBox Height="23" HorizontalAlignment="Right" Margin="0,13,493,0" Name="comboBox1" VerticalAlignment="Top" Width="165" ItemsSource="{Binding ClientTypes}" DisplayMemberPath="Value" SelectedItem="{Binding ClientTypeSelected}" />
                    <TextBlock Height="18" HorizontalAlignment="Left" Margin="370,17,0,0" Name="textBlock2" Text="Vendor Type" VerticalAlignment="Top" Width="70" />
                    <ComboBox Height="23" HorizontalAlignment="Left" Margin="446,13,0,0" Name="comboBox2" VerticalAlignment="Top" Width="165" ItemsSource="{Binding VendorTypes}" DisplayMemberPath="Value" SelectedItem="{Binding VendorTypeSelected}" />
                    <TextBlock Height="18" HorizontalAlignment="Left" Margin="6,61,0,0" Name="textBlock5" Text="Manager" VerticalAlignment="Top" Width="90" />
                    <ComboBox Height="23" HorizontalAlignment="Left" Margin="110,56,0,0" Name="comboBox4" VerticalAlignment="Top" Width="165" ItemsSource="{Binding Employees}" DisplayMemberPath="FullName" />
                    <TextBlock Height="18" HorizontalAlignment="Left" Margin="6,233,0,0" Name="textBlock6" Text="Status" VerticalAlignment="Top" Width="90" />
                    <ComboBox DisplayMemberPath="UserState" Height="23" HorizontalAlignment="Left" ItemsSource="{Binding UserStates}" Margin="110,228,0,0" Name="comboBox5" VerticalAlignment="Top" Width="165" />
                </Grid>
            </controls:TabItem>
            <controls:TabItem Header="Addresses">
                <Grid />
            </controls:TabItem>
            <controls:TabItem Header="Accounting">
                <Grid>
                    <TextBlock Height="18" HorizontalAlignment="Left" Margin="10,15,0,0" Name="textBlock4" Text="NIF Number" VerticalAlignment="Top" Width="70" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="86,11,0,0" Name="textBox3" VerticalAlignment="Top" Width="165" />
                    <TextBlock Height="18" HorizontalAlignment="Left" Margin="10,47,0,0" Name="textBlock3" Text="Payment Term" VerticalAlignment="Top" Width="89" />
                    <ComboBox Height="23" Margin="0,42,498,0" Name="comboBox3" VerticalAlignment="Top" HorizontalAlignment="Right" Width="165" />
                </Grid>
            </controls:TabItem>
        </controls:TabControl>
    </Grid>
</controls:ChildWindow>